import type { Member, MemberParams } from '@/types/member'
import { http } from '@/utils/http'

/**
 * 获取个人信息
 */
export const selectMember = () => {
  return http<Member>({
    method: 'GET',
    url: '/api/member/selectMember',
  })
}

/**
 * 修改个人信息
 * @param data 请求体参数
 */
export const updateMember = (data: MemberParams) => {
  return http<Member>({
    method: 'POST',
    url: '/api/member/updateMember',
    data,
  })
}
